package com.gxkj.spark.helloworld.services.impl;

import com.gxkj.spark.helloworld.daos.SparkBaseDataDaoImpl;
import com.gxkj.spark.helloworld.daos.SparkSumDaoImpl;
import com.gxkj.spark.helloworld.entitys.SparkBaseData;
import com.gxkj.spark.helloworld.entitys.SparkSum;
import com.gxkj.spark.helloworld.services.SparkSumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class SparkSumServiceImpl implements SparkSumService {


    @Autowired
    private SparkSumDaoImpl sparkSumDao;

    public SparkSum doAdd(SparkBaseData entity) {

        SparkSum dbEntity =  sparkSumDao.saveOrUpdate( entity);
        return dbEntity;
    }
}
